﻿<%@ Page Language="C#" MasterPageFile="~/GUI/SiteMasterPage.Master" AutoEventWireup="true" CodeBehind="CheckIn.aspx.cs" Inherits="wdss.GUI.CheckIn" Title="Check In" %>
<asp:Content ID="Content2" ContentPlaceHolderID="content1" runat="server">
    <br /><br />
    <table align =center>
	    <tr>
	    <td>
	    <asp:Label ID = welcome_lbl runat =server Font-Names = "Arial Rounded MT Bold" 
	    ForeColor ="white" Text="Welcome" Font-Size="20px"></asp:Label>
	    </td>
	    <td>
	    <asp:Label ID = username_lbl runat =server Font-Names = "Arial Rounded MT Bold" 
	    ForeColor ="white" Text="" Font-Size="20px"></asp:Label>
	    </td>
	    <td>
	    <asp:Label ID = sym_lbl runat =server Font-Names = "Arial Rounded MT Bold" 
	    ForeColor ="white" Text="...!" Font-Size="20px"></asp:Label>
	    </td>
	    </tr></table>
	    <br />
<form id="checkIn">
    <table align=center>
    <tr>
    <td> 
    <asp:Label runat=server ID="title" Text="CheckIn Document"
    Font-Bold="True" 
        Font-Names="Arial Rounded MT Bold" Font-Size="XX-Large" ForeColor="White">
    </asp:Label>
    </td>
    </tr>
    </table>
            
    
		
            <table align =center cellpadding=10 cellspacing=10 border =2>
                <tr>
                    <td>
                        <asp:Label ID="lbl_ChooseDocument" ForeColor="White" 
                runat=server Font-Names="Arial Rounded MT Bold" Text="Choose Document" AssociatedControlID="ddl_ChooseDocument"></asp:Label>
                     </td>
                     <td >
                        <asp:DropDownList ID="ddl_ChooseDocument" ForeColor="Black" 
                runat=server Font-Names="Arial Rounded MT Bold" 
                            DataSourceID="aspnetdb_authored_documents_CheckIn" DataTextField="doc_title" 
                            DataValueField="doc_id"> </asp:DropDownList>
                        <asp:SqlDataSource ID="aspnetdb_authored_documents_CheckIn" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:aspnetdbConnectionString %>" 
                            SelectCommand="sp_GetCheckOutDocument" SelectCommandType="StoredProcedure" 
                             ProviderName="System.Data.SqlClient">
                            <SelectParameters>
                                <asp:SessionParameter DefaultValue="0" Name="par_userid" SessionField="userid" 
                                    Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </td>
                </tr>
            <tr>
                    <td >
                          <asp:CheckBox ID="cb_Confirm" ForeColor="White" 
                runat=server Font-Names="Arial Rounded MT Bold" Text="Confirm Check In" />
                    </td>
                    <td align=right>
                         <asp:Button ID="btn_CheckIn" runat="server" Text="Check In Document" OnClick="btn_CheckIn_Click" 
                         BackColor="#14263A" 
                BorderStyle="Outset" Font-Names="Arial Rounded MT Bold" ForeColor="White"  />
                     </td>
            </tr>
                 <tr>
                     <td colspan = 2 align=center>
                        <asp:Label ID="lbl_Error"
                runat=server Font-Names="Arial Rounded MT Bold" ForeColor="Red" Visible="false" />
                        <asp:Label ID="lbl_Success" ForeColor="White" 
                runat=server Font-Names="Arial Rounded MT Bold" Text="Successfully checked in the document." Visible="false" />
                     </td>
            </tr>
            </table>
    </form>
</asp:Content>

